#include<stdio.h>
int main(void)
{
	/*********Begin*********/
	int a, b, c, d, e;
	int sum;
	scanf("%d %d %d %d %d", &a, &b, &c, &d, &e);
	sum = a + b + c + d + e;

	float f;
	f = sum / 5.0;

	printf("%d %.2f", sum, f);
	/*********End**********/
	return 0;
}